package com.org.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.org.bean.system.UserTempInfo;
import com.org.dao.system.UserTempInfoMapper;
import com.org.service.UserTempService;
@Service("userTempService")
public class UserTempServiceimpl  implements UserTempService{

	@Autowired
	private UserTempInfoMapper userTempInfoMapper;
	@Override
	public List<UserTempInfo> findAll() {
		// TODO Auto-generated method stub
		return userTempInfoMapper.findAll();
	}

	@Override
	public List<UserTempInfo> findById(int userId) {
		// TODO Auto-generated method stub
		return userTempInfoMapper.findById(userId);
	}

	@Override
	public boolean addUser(UserTempInfo userTempInfo) {
		// TODO Auto-generated method stub
		return userTempInfoMapper.addUser(userTempInfo);
	}

	@Override
	public boolean deleteUser(int userId) {
		// TODO Auto-generated method stub
		return userTempInfoMapper.deleteUser(userId);
	}

	@Override
	public boolean updateUser(UserTempInfo userTempInfo) {
		// TODO Auto-generated method stub
		return userTempInfoMapper.updateUser(userTempInfo);
	}

}
